In mathematics, the Courant–Friedrichs–Lewy condition (CFL condition) is a necessary condition for convergence while solving certain partial differential equations (usually hyperbolic PDEs) numerically by the method of finite differences.[1] It arises when explicit time-marching schemes are used for the numerical solution. As a consequence, the time step must be less than a certain time in many explicit time-marching computer simulations, otherwise the simulation will produce wildly incorrect results. The condition is named after Richard Courant, Kurt Friedrichs, and Hans Lewy who described it in their 1928 paper.[2]
Contents |
The information behind the condition is that, for example, if a wave is moving across a discrete spatial grid and we want to compute its amplitude at discrete time steps of equal length,[3] then this length must be less than the time for the wave to travel adjacent grid points. As a corollary, when the grid point separation is reduced, the upper limit for the time step also decreases. In essence, the numerical domain of dependence of any point in space and time (which data values in the initial conditions affect the numerical computed value at that point) must include the analytical domain of dependence (where in the initial conditions has an effect on the exact value of the solution at that point) in order to assure that the scheme can access the information required to form the solution.
In order to make a reasonably formally precise statement of the condition, it is necessary to define the following quantities
The spatial coordinates and the time are supposed to be discrete valued independent variables, whose minimal steps are called respectively the interval length[4] and the time step: the CFL condition relates the length of the time step to a function interval lengths of each spatial variable.
Operatively, the CFL condition is commonly prescribed for those terms of the finite-difference approximation of general partial differential equations which model the advection phenomenon.[5]
For one-dimensional case, the CFL has the following form:
where
is called the Courant number.
In the two–dimensional case, the CFL condition becomes
with obvious meaning of the symbols involved. In analogy with the two–dimensional case, the general CFL condition for the –dimensional case is the following one
Note that the interval length it is not required to be the same for each spatial variable , = 1 ,..., . This "degree of freedom" can be used in order to somewhat optimize the value of the time step for a particular problem, by varying the values of the different interval in order to keep it not too small.
As already remarked, the CFL condition is a necessary condition, but may not be sufficient for the convergence of the Finite-difference approximation of a given numerical problem. Thus, in order to establish the convergence of the finite-difference approximation, it is necessary to use other methods, which in turn could imply further limitations on the length of the time step and/or the lengths of the spatial intervals.
The CFL condition can be a very limiting constraint on the time step : for example, in the finite-difference approximation of certain fourth-order nonlinear partial differential equations, it can have the following form
meaning that a decrease in the length interval requires a fourth order decrease in the time step for the condition to be fulfilled. Therefore, when solving particularly stiff problems, efforts are often made to avoid the CFL condition, for example by using implicit methods. However, in a recent work,[7] a modern dynamical systems approaches to modeling, based upon center manifold theory, is demonstrated to provide theoretical support for the construction of non-traditional discretisations that automatically overcome the CFL restriction: see the article by Roberts (2003) for further information.